import http from '@/utils/request.js'

/**
 * 登录验证码
 * @returns {Promise<unknown>}
 */
export async function captcha(data) {
    return await http.get('/captcha/image', data, null)
}

/**
 * 登录
 * @returns {Promise<unknown>}
 */
export async function login(data) {
    return await http.post('/login', data, null)
}

export async function version() {
    return await http.get('/version', null, null)
}